# Maintainer: Alexey Pavlov <alexpux@gmail.com>

_realname=Socket6
pkgname="perl-${_realname}"
pkgver=0.28
pkgrel=3
pkgdesc="A getaddrinfo/getnameinfo support module"
arch=('i686' 'x86_64')
url='http://search.cpan.org/dist/Socket6'
license=('PerlArtistic' 'GPL')
depends=('perl')
options=('!emptydirs')
source=(https://www.cpan.org/authors/id/U/UM/UMEMOTO/Socket6-$pkgver.tar.gz)
sha256sums=('bfd49ab99f3197c99285fed4683c4edc06277c1e4453f593e694d7bff0974586')

build() {
  cd Socket6-$pkgver
  perl Makefile.PL INSTALLDIRS=vendor
  make
}

check() {
  cd Socket6-$pkgver
  make test
}

package() {
  cd Socket6-$pkgver
  make DESTDIR="$pkgdir" install
}
